package cn.lyh97.estore.easystoremanager.Classes;

import cn.lyh97.estore.easystoremanager.Activities.MainActivity;
import cn.lyh97.estore.easystoremanager.R;

public class GoodsItem {
    //<editor-fold getter and setter>
    public String getID() {
        return mID;
    }

    public void setID(String mID) {
        this.mID = mID;
    }

    public String getImgID() {
        return mImgID;
    }

    public void setImgID(String mImgID) {
        this.mImgID = mImgID;
    }

    public String getName() {
        return mName;
    }

    public void setName(String mName) {
        this.mName = mName;
    }

    public String getTag() {
        return mTag;
    }

    public void setTag(String mTag) {
        this.mTag = mTag;
    }

    public String getDescription() {
        return mDescription;
    }

    public void setDescription(String mDescription) {
        this.mDescription = mDescription;
    }

    public Integer getNum() {
        return mNum;
    }

    public void setNum(Integer mNum) {
        this.mNum = mNum;
    }

    public Float getPrice() {
        return mPrice;
    }

    public void setPrice(Float mPrice) {
        this.mPrice = mPrice;
    }

    public Float getProfit() {
        return mProfit;
    }

    public void setProfit(Float mProfit) {
        this.mProfit = mProfit;
    }

    public Integer getOddSum() {
        return mOddSum;
    }

    public void setOddSum(Integer mOddSum) {
        this.mOddSum = mOddSum;
    }

    public Integer getEvenSum() {
        return mEvenSum;
    }

    public void setEvenSum(Integer mEvenSum) {
        this.mEvenSum = mEvenSum;
    }
    //</editor-fold>get
    private String mID;         //产品号
    private String mImgID;      //图片R.id
    private String mName;       //货物名
    private String mTag;        //货物的 标签 Tag
    private String mDescription;//货物的描述 varchar(500)
    private Integer mNum;       //数量
    private Float mPrice;     //价格
    private Float mProfit;    //利润
    private Integer mOddSum;    //奇数月份的 库存数量
    private Integer mEvenSum;   //偶数月份的 库存数量

    public GoodsItem() {
        mImgID = String.valueOf(R.drawable.goods_item);
        mName = "N/A";
        mTag = "标签(无)";
        mDescription = "对货物的描述：";
        mNum = 0;
        mPrice = 0f;
        mProfit = 0f;
        mOddSum = 0;
        mEvenSum = 0;
    }

    public GoodsItem(String ID, String name, Integer num){
        mID = ID;
        mImgID = String.valueOf(R.drawable.goods_item);
        mName = name;
        mTag = "标签(无)";
        mDescription = "对货物的描述：";
        mNum = num;
        mPrice = 0f;
        mProfit = 0f;
        mOddSum = 0;
        mEvenSum = 0;
    }

    public GoodsItem(String ID, String imgId, String name , String tag, String description, Integer num, Float price, Float profit, Integer oddSum, Integer evenSum) {
        mID = ID;
        mImgID = imgId;
        mName = name;
        mTag = tag;
        mDescription = description;
        mNum = num;
        mPrice = price;
        mProfit = profit;
        mOddSum = oddSum;
        mEvenSum = evenSum;
    }
}
